package cn.gov.service.impl;

import cn.geracomium.util.service.abs.AbstractService;
import cn.gov.dao.IMemberStateDAO;
import cn.gov.service.IMemberStateService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.Map;
@Service
public class MemberStateServiceImpl extends AbstractService implements IMemberStateService {
    @Autowired
    private IMemberStateDAO memberStateDAO;
    @Override
    public Map<String, Object> list() {
        Map<String,Object> result = new HashMap<>() ;
        result.put("allMemberStates", this.memberStateDAO.findAll()) ;
        return result;
    }
}
